package www.woniuxy.com.class112.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import www.woniuxy.com.class112.dto.PolicyDto;
import www.woniuxy.com.class112.entity.Policy;
import www.woniuxy.com.class112.entity.PolicyExample;

public interface PolicyMapper {
    long countByExample(PolicyExample example);

    int deleteByExample(PolicyExample example);

    int deleteByPrimaryKey(Long policyId);

    int insert(Policy record);

    int insertSelective(Policy record);

    List<Policy> selectByExample(PolicyExample example);

    Policy selectByPrimaryKey(Long policyId);

    int updateByExampleSelective(@Param("record") Policy record, @Param("example") PolicyExample example);

    int updateByExample(@Param("record") Policy record, @Param("example") PolicyExample example);

    int updateByPrimaryKeySelective(Policy record);

    int updateByPrimaryKey(Policy record);

    List<PolicyDto> policyfdAll(@Param("title") String title, @Param("senderId") Integer senderId);

    List<PolicyDto> breedingAll(@Param("title")String title,@Param("senderId") Integer senderId);

    List<PolicyDto> achievementAll(@Param("title")String title, @Param("senderId")Integer senderId);

    List<PolicyDto> userachievementfdAll(@Param("title") String title,@Param("senderId") Integer senderId);

    List<PolicyDto> userbreedingfdAll(@Param("title") String title,@Param("senderId") Integer senderId);

    List<PolicyDto> userpolicyfdAll(@Param("title") String title,@Param("senderId") Integer senderId);
}